1 <?php
2 include(
"header.php");
3
4 include(
"sidebar.php");
5 include(
"dbconnection.php");
6 $sql = mysql_query(
"select * from vehiclestore where status = 'Sold'");
7
8 ?>
9         
10                             
11         <div id=
"main">
12         <h3>Vehicle store</h3>
13         
14         <div id=
"wrapper">
15         <?php
16            
while($row = mysql_fetch_array($sql))
17         {
18         ?>
19         <div id=
"products">
20         <table border=
"0">
21         <tr>
22         <td><img src=
"upload/<?= $row['images']; ?>" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
23         <strong>Model:</strong> <?= $row[
'model']; ?> <br />
24         <strong> Brand:</strong><?= $row[
'brand']; ?><br />
25               <strong>Estimated price: </strong>Rs.<?= $row[
'estprice']; ?><br />
26               <strong> <?php echo
"<a href='soldvahiclemore.php?vahicleid=$row[vehicleid]'>More&gt;&gt;</a></strong><br />"; ?>
27               <br />
28             </p>
29         </td></tr></table>
30         </div>
31          <?
32         }
33         ?>
34         </div>
35        
36         <!--<table width=
"538" border="1">
37        
38          
39           <tr>
40             <td width=
"268">
41             <p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
42               <strong>Model:</strong> <?= $row[
'vehname']['0']; ?> <br />
43               <strong> Brand:</strong> tyere<br />
44               <strong>Estimated price: </strong>Rs.
20000<br />
45               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
46               <br />
47             </p></td>
48             <td width=
"246"><p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
49               <strong>Model:</strong> <?= $row[
'vehname']['1']; ?> <br />
50               <strong> Brand:</strong> tyere<br />
51               <strong>Estimated price: </strong>Rs.
20000<br />
52               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
53               <br />
54             </p></td>
55           </tr>
56          <?
57          
// }
58           ?>
59           <tr>
60             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
61               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
62               <strong> Brand:</strong> tyere<br />
63               <strong>Estimated price: </strong>Rs.
20000<br />
64               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
65               <br />
66             </p></td>
67             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
68               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
69               <strong> Brand:</strong> tyere<br />
70               <strong>Estimated price: </strong>Rs.
20000<br />
71               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
72               <br />
73             </p></td>
74           </tr>
75             <tr>
76             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
77               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
78               <strong> Brand:</strong> tyere<br />
79               <strong>Estimated price: </strong>Rs.
20000<br />
80               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
81               <br />
82             </p></td>
83             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
84               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
85               <strong> Brand:</strong> tyere<br />
86               <strong>Estimated price: </strong>Rs.
20000<br />
87               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
88               <br />
89             </p></td>
90           </tr> <tr>
91             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
92               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
93               <strong> Brand:</strong> tyere<br />
94               <strong>Estimated price: </strong>Rs.
20000<br />
95               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
96               <br />
97             </p></td>
98             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
99               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
100               <strong> Brand:</strong> tyere<br />
101               <strong>Estimated price: </strong>Rs.
20000<br />
102               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
103               <br />
104             </p></td>
105           </tr>
106           </table>-->
107         </div>
108         
109 <!-- wrap ends here -->
110 </div>
111         
112 <?php
113 include(
"footer.php");
114 ?>


Gõ tìm kiếm nhanh...